home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gdk / gdkselection.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  3.6 KB  |  108 lines

  1. /* GDK - The GIMP Drawing Kit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. /*
  21.  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  22.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  23.  * files for a list of changes.  These files are distributed with
  24.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  25.  */
  26.  
  27. #ifndef __GDK_SELECTION_H__
  28. #define __GDK_SELECTION_H__
  29.  
  30. #include <gdk/gdktypes.h>
  31.  
  32. G_BEGIN_DECLS
  33.  
  34. /* Predefined atoms relating to selections. In general, one will need to use
  35.  * gdk_intern_atom
  36.  */
  37. #define GDK_SELECTION_PRIMARY         _GDK_MAKE_ATOM (1)
  38. #define GDK_SELECTION_SECONDARY     _GDK_MAKE_ATOM (2)
  39. #define GDK_SELECTION_CLIPBOARD     _GDK_MAKE_ATOM (69)
  40. #define GDK_TARGET_BITMAP         _GDK_MAKE_ATOM (5)
  41. #define GDK_TARGET_COLORMAP         _GDK_MAKE_ATOM (7)
  42. #define GDK_TARGET_DRAWABLE         _GDK_MAKE_ATOM (17)
  43. #define GDK_TARGET_PIXMAP         _GDK_MAKE_ATOM (20)
  44. #define GDK_TARGET_STRING         _GDK_MAKE_ATOM (31)
  45. #define GDK_SELECTION_TYPE_ATOM     _GDK_MAKE_ATOM (4)
  46. #define GDK_SELECTION_TYPE_BITMAP     _GDK_MAKE_ATOM (5)
  47. #define GDK_SELECTION_TYPE_COLORMAP     _GDK_MAKE_ATOM (7)
  48. #define GDK_SELECTION_TYPE_DRAWABLE     _GDK_MAKE_ATOM (17)
  49. #define GDK_SELECTION_TYPE_INTEGER     _GDK_MAKE_ATOM (19)
  50. #define GDK_SELECTION_TYPE_PIXMAP     _GDK_MAKE_ATOM (20)
  51. #define GDK_SELECTION_TYPE_WINDOW     _GDK_MAKE_ATOM (33)
  52. #define GDK_SELECTION_TYPE_STRING     _GDK_MAKE_ATOM (31)
  53.  
  54. #ifndef GDK_DISABLE_DEPRECATED
  55.  
  56. typedef GdkAtom GdkSelection;
  57. typedef GdkAtom GdkTarget;
  58. typedef GdkAtom GdkSelectionType;
  59.  
  60. #endif /* GDK_DISABLE_DEPRECATED */
  61.  
  62. /* Selections
  63.  */
  64.  
  65. #ifndef GDK_MULTIHEAD_SAFE
  66. gboolean   gdk_selection_owner_set (GdkWindow     *owner,
  67.                     GdkAtom      selection,
  68.                     guint32      time_,
  69.                     gboolean      send_event);
  70. GdkWindow* gdk_selection_owner_get (GdkAtom      selection);
  71. #endif/* GDK_MULTIHEAD_SAFE */
  72.  
  73. gboolean   gdk_selection_owner_set_for_display (GdkDisplay *display,
  74.                         GdkWindow  *owner,
  75.                         GdkAtom     selection,
  76.                         guint32     time_,
  77.                         gboolean    send_event);
  78. GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display,
  79.                         GdkAtom     selection);
  80.  
  81. void       gdk_selection_convert   (GdkWindow     *requestor,
  82.                     GdkAtom      selection,
  83.                     GdkAtom      target,
  84.                     guint32      time_);
  85. gboolean   gdk_selection_property_get (GdkWindow  *requestor,
  86.                        guchar     **data,
  87.                        GdkAtom      *prop_type,
  88.                        gint      *prop_format);
  89.  
  90. #ifndef GDK_MULTIHEAD_SAFE
  91. void       gdk_selection_send_notify (guint32        requestor,
  92.                       GdkAtom        selection,
  93.                       GdkAtom        target,
  94.                       GdkAtom        property,
  95.                       guint32        time_);
  96. #endif /* GDK_MULTIHEAD_SAFE */
  97.  
  98. void       gdk_selection_send_notify_for_display (GdkDisplay *display,
  99.                           guint32     requestor,
  100.                           GdkAtom     selection,
  101.                           GdkAtom     target,
  102.                           GdkAtom     property,
  103.                           guint32     time_);
  104.  
  105. G_END_DECLS
  106.  
  107. #endif /* __GDK_SELECTION_H__ */
  108.